﻿
#ifndef __PoiSearchViewController__
#define __PoiSearchViewController__

#include "CrossApp.h"
#include "AppTool.h"

USING_NS_CC;

class PoiSearchViewController : public CAViewController, public PoiSearchDelegate
{
    
public:

	PoiSearchViewController();
    
	virtual ~PoiSearchViewController();
    
protected:
    
    void viewDidLoad();
    
    void viewDidUnload();

	virtual void onPoiKeySearchEnd(int code, std::vector<POISearchData> v_datas);

	virtual void onPoiAroundSearch(int code, std::vector<POISearchData> v_datas);

	virtual void poiKeySearchSchedule(float t);

	virtual void poiAroundSearchSchedule(float t);

	void poikeyBtClicked(CAControl* ctrl, DPoint point);

	void poiaroundBtClicked(CAControl* ctrl, DPoint point);

private:

	CALabel* lb1;

	CALabel* lb2;

	int m_iCode;

	std::vector<POISearchData> v_PoiDatas;
};


#endif
